<?php
/**
 * Joomla! 1.5 component ArticleCashRewards
 *
 * @version $Id: topearners.php 2009-05-10 01:47:01 svn $
 * @author Maverick
 * @package Joomla
 * @subpackage components.controllers
 * @link http://joomladev.boddunan.com
 * @license GNU/GPL
 *
 * Review and approve the articles and assign points and cash rewards.
 * Users can see their articles and the points/cash rewards assigned in the front-end module.
 */
 
// No direct access
 
defined( '_JEXEC' ) or die( 'Restricted access' );
 
jimport('joomla.application.component.controller');
 
/**
 * Articles Cash Rewards Component Articles Controller
 *
 * @package    Joomla.Tutorials
 * @subpackage Components
 */
class ArticleCashRewardsControllerTopEarners extends JController
{
    /**
     * Method to display the view
     *
     * @access    public
     */
    function display(){
        
        global $mainframe, $acr_config;
        $acr_config = $mainframe->getUserState( SESSION_ACR_CONFIG );
        if(!isset($acr_config)){
            $model = & $this->getModel('config');
            $configt = $model->getConfiguration();

            foreach($configt as $ct){
                $acr_config[$ct->config_name] = $ct->config_value;
            }
            $mainframe->setUserState( SESSION_ACR_CONFIG, $acr_config );
        }
	    
	    JRequest::setVar( 'view', 'topearners' );
        parent::display();
    }
 
}
